<?php defined('IN_PHPCMS') or exit('No permission resources.'); ?><!DOCTYPE html>
<html lang="zh-cmn-Hans" class="wide wow-animation smoothscroll scrollTo">
  <head>
    <?php include template("layouts","header"); ?>
  </head>
  <body>
    <!-- Page-->
    <div class="page text-center">
      <!-- Page Header-->
      <header class="page-head">
        <?php include template("layouts","navbar"); ?>
      </header>
      <?php include template("layouts","breadcrumb"); ?>

      <!-- Page Content-->
      <main class="page-content">
        <!-- Masonry Blog-->
        <!-- <div id="fb-root"></div> -->
        <section class="section-98 section-sm-110">
          <div class="shell">
            <div class="range range-xs-center">
              <div class="cell-md-10 cell-lg-8">
                <div data-type="horizontal" class="responsive-tabs responsive-tabs-classic">
                  <ul class="resp-tabs-list text-center tabs-group-default">
                    <?php $n=1;if(is_array(subcat($CAT['parentid']))) foreach(subcat($CAT['parentid']) AS $r) { ?>
                    <li <?php if(($catid==$r['catid'])) { ?>class="resp-tab-active"<?php } ?>>
                      <a href="<?php echo $r['url'];?>"><?php echo $r['catname'];?></a>
                    </li>
                    <?php $n++;}unset($n); ?>
                  </ul>
                </div>
                <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=65f322765cf376d3b0291bcba77a44fb&action=lists&catid=%24catid&num=6&siteid=%24siteid&order=listorder+DESC&page=%24page\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'lists')) {$pagesize = 6;$page = intval($page) ? intval($page) : 1;if($page<=0){$page=1;}$offset = ($page - 1) * $pagesize;$content_total = $content_tag->count(array('catid'=>$catid,'siteid'=>$siteid,'order'=>'listorder DESC','limit'=>$offset.",".$pagesize,'action'=>'lists',));$pages = pages($content_total, $page, $pagesize, $urlrule);$data = $content_tag->lists(array('catid'=>$catid,'siteid'=>$siteid,'order'=>'listorder DESC','limit'=>$offset.",".$pagesize,'action'=>'lists',));}?>
                <div class="range offset-top-0">
                  <?php $n=1;if(is_array($data)) foreach($data AS $r) { ?>
                  <div class="cell-md-6 offset-top-20">
                    <article class="post post-modern post-modern-classic post-modern-classic-full">
                      <header class="post-media">
                        <a href="<?php echo $r['url'];?>"><img width="770" height="480" src="<?php echo $r['thumb'];?>" alt="<?php echo $r['title'];?>" class="img-responsive img-cover"/></a>
                      </header>
                      <!-- Post content-->
                      <section class="post-content text-left">
                        <div class="post-title offset-top-8">
                          <h4 class="text-bold"><a href="<?php echo $r['url'];?>" title="<?php echo $r['title'];?>"><?php echo str_cut($r['title'],44);?></a></h4>
                        </div>
                        <ul class="list-inline list-inline-dashed">
                          <li><?php echo date('Y-m-d H:m:s',$r['inputtime']);?></li>
                          <li class="text-primary"><?php echo $r['username'];?></li>
                        </ul>
                        <div class="post-body">
                          <?php echo str_cut($r['description'],200);?>
                        </div>
                        <div class="tags group group-sm">
                          <?php echo keyword_format($r['keywords']);?>
                        </div>
                      </section>
                    </article>
                  </div>
                  <?php $n++;}unset($n); ?>
                </div>
                <div class="offset-top-20 text-center">
                  <hr class="text-subline">
                  <?php echo $pages;?>
                </div>
                <?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
              </div>
              <div class="cell-sm-10 cell-md-8 cell-lg-4 offset-top-66 offset-md-top-90 offset-lg-top-0">
                <div class="blog-grid-sidebar inset-lg-left-30">
                  <!-- Aside-->
                  <aside class="text-left">
                    <!-- Search in Blog-->
                    <div>
                      <?php include template("layouts","c_search"); ?>
                    </div>
                    <!-- keywords-->
                    <div class="offset-top-30 offset-md-top-60">
                      <?php include template("layouts","keyword"); ?>
                    </div>
                    <!-- Recent Posts-->
                    <div class="offset-top-30 offset-md-top-60">
                      <?php include template("layouts","hits"); ?>
                    </div>
                  </aside>
                </div>
              </div>
            </div>
          </div>
        </section>
      </main>
      <?php include template("layouts","footer"); ?>
    </div>
    <?php include template("layouts","global"); ?>
    <?php include template("layouts","javascript"); ?>
  </body>
</html>
